package Prototype;

public class TestClientNew {
    public static void main(String[] args) {
        TestPrototypeNew test = new TestPrototypeNew("jiajianing", new Gender("male"));
        test.display();

        try{
            TestPrototypeNew copy = (TestPrototypeNew) test.Clone();
            copy.display();
            System.out.println(test.gender == copy.gender);
        }catch (Exception e){
            System.out.println("clone error");
        }
    }
}
